<?php
/**
 * @version $Id: toolbar.sketchup.html.php,v 1.3 2009/06/04 20:13:37 dgravato Exp $
 * @package    sketchup
 * @subpackage 
 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 30-Mar-2009
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class TOOLBAR_sketchups {
	function _NEW() {
		JToolBarHelper::save();
		JToolBarHelper::apply();
		JToolBarHelper::cancel();
	}

	function _DEFAULT() {
		JToolBarHelper::title( JText::_( 'Manage Sketchup Projects' ), 'generic.png' );
		JToolBarHelper::publishList();
		JToolBarHelper::unpublishList();
		JToolBarHelper::editList();
		JToolBarHelper::deleteList();
		JToolBarHelper::addNew();
		
		$alt = "Upload Images";
		$bar=& JToolBar::getInstance( 'toolbar' );
		$bar->appendButton( 'Popup', 'upload', $alt, 'index.php?option=com_media', 1200, 550 );
		
		JToolBarHelper::preferences('com_sketchup', '550');
		
	}
}

class TOOLBAR_sketchup_comments 
{
	function _EDIT()
	{
		JToolBarHelper::save('saveComment'); 
		JToolBarHelper::cancel('comments');
	}
	
	function _DEFAULT()
	{
		JToolBarHelper::title( JText::_( 'Manage Sketchup Comments' ), 'generic.png' );
		JToolBarHelper::editList('editComment');
		JToolBarHelper::deleteList('Are you sure you want to remove these comments?', 'removeComment');
	}
}

class TOOLBAR_sketchup_thumbs 
{
	
	
	function _DEFAULT()
	{
		JToolBarHelper::title( JText::_( 'Make Sketchup Thumbnails' ), 'generic.png' );
		JToolBarHelper::customX('makethumbs' ,'default.png' , 'default.png', 'make thumbs', false);
		JToolBarHelper::customX('makeSiteImages' ,'default.png' , 'default.png', 'make site images', false);
		JToolBarHelper::customX('moveSiteImages' ,'move.png' , 'move.png', 'move site images', false);
		//JToolBarHelper::media_manager('upload', 'upload', 'alt', 'index.php', 550, 440 );
		JToolBarHelper::cancel('thumbs');
		
	}
}

?>
